package com.mdb.open.trade.domain.dto.trade;

import com.mdb.bc.api.data.DataObjectBase;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @description:
 * @author: you.yichao
 * @create: 2019-07-10 15:44
 **/
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="ProcessInwardClaimDto", description="处理汇入认领Dto对象")
public class ProcessInwardClaimDto extends DataObjectBase {

    /**
     * 认领列表
     */
    @ApiModelProperty(value = "认领列表")
    @Valid
    @Size(max = 5, message = "认领对象最多{max}个")
    private List<ClaimItemDto> claimItemDtoList;

    /**
     * 汇款编号
     */
    @ApiModelProperty(value = "汇款编号")
    @NotBlank(message = "汇款编号不允许为空")
    @Size(max = 64, message = "汇款编号最长为{max}位")
    private String remitNo;


}
